<%@page import="com.jhs.kjs.model.UserModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<title>알당</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ include file="/WEB-INF/views/include/common.jsp" %>	
<link rel="stylesheet" type="text/css" href="${cssUrl}/base.css" />
<link rel="stylesheet" type="text/css" href="${cssUrl}/contents.css" />

</head>
<body>
<%


HttpSession session = request.getSession();
%>
<div id="wrap">
	<div class="header">
		<div class="logo">
			<a href="/home"><img src="${imgUrl}/logo.jpg" border="0" /></a>
		</div>
		<div class="top_menu">
			<ul>
				
			    <sec:authorize access="hasAnyRole('ROLE_QADMIN', 'ROLE_DADMIN', 'ROLE_CADMIN', 'ROLE_USER')">
					<li><a href="<c:url value="j_spring_security_logout" />">로그아웃</a></li>
					 <sec:authorize access="hasRole('ROLE_QADMIN')">
						<li><a href="/admin/adminBoardMain">관리자</a></li>
				    </sec:authorize> 
				    
				    <sec:authorize access="!hasRole('ROLE_QADMIN')">
					<li><a href="/mypage">마이페이지</a></li>
			    	</sec:authorize>
				</sec:authorize>
				<sec:authorize access="!hasAnyRole('ROLE_QADMIN', 'ROLE_DADMIN', 'ROLE_CADMIN', 'ROLE_USER')">
				
					<li><a href="/signin">로그인</a></li>
					<li><a href="/user/join1">회원가입</a></li>
					<li><a href="#">마이페이지</a></li>
				</sec:authorize>
			</ul>
		</div>
		<sec:authorize access="hasAnyRole('ROLE_QADMIN', 'ROLE_DADMIN', 'ROLE_CADMIN', 'ROLE_USER')">
			<li>사용 가능 포인트 : <%=session.getAttribute(UserModel.USER_POINT)%></li>
		</sec:authorize>
	</div>
	<div class="sub_visual">
		<div class="visual">
			<img src="${imgUrl}/sub_visual.jpg" border="0" />
		</div>
	</div>